@charset "utf-8";
$font-size: 40; //根节点的字体大小
@function r($px) { 
    @return $px/$font-size*1rem; //计算rem
}

@mixin middle{
    position: absolute;
    top:50%;
    transform:translateY(-50%);
}
@mixin abCenter{
    position: absolute;
    top:-9999px;
    bottom:-9999px;
    left: -9999px;
    right:-9999px;
    margin: auto;
}
@mixin aImg{
    overflow: hidden;
    position: relative;
    img{
        position: absolute;
        width: 100%;
        top:-9999px;
        bottom:-9999px;
        left:-9999px;
        right:-9999px;
        margin: auto;
    }
}
//web背景
@mixin webbg{
     width: 100%;
     height: 100%;
     margin: 0 auto;
     overflow: hidden;
     background:url(../img/diwen.png) center/cover no-repeat #bf0c21; 
}

